package com.design.pattern.creator.factory.pay.simple;


//国内支付
public  class DomesticPaymentFactory extends AbstractPaymentFactory {
    @Override
    public void init() {
        super.init();
        System.out.println("初始化一些国内一些标准数据");
    }

    protected IPayment createDomesticApplePayment(){
        this.init();
        return new ApplePayment();
    }

    protected IPayment createWxPayment(){
        this.init();
        return new ApplePayment();
    }

    protected IPayment createUniPayment(){
        this.init();
        return new UniPayment();
    }

    protected IPayment createAliPayment(){
        this.init();
        return new AliPayment();
    }
}
